/*  1:   */ package com.atomikos.icatch.jta;
/*  2:   */ 
/*  3:   */ import javax.transaction.xa.XAResource;
/*  4:   */ 
/*  5:   */ class ConfigurationEntry
/*  6:   */ {
/*  7:   */   private String name_;
/*  8:   */   private XAResource xares_;
/*  9:   */   
/* 10:   */   ConfigurationEntry(XAResource xares, String name)
/* 11:   */   {
/* 12:43 */     this.xares_ = xares;
/* 13:44 */     this.name_ = name;
/* 14:   */   }
/* 15:   */   
/* 16:   */   String getName(XAResource xares)
/* 17:   */   {
/* 18:   */     try
/* 19:   */     {
/* 20:58 */       if (this.xares_.isSameRM(xares)) {
/* 21:59 */         return this.name_;
/* 22:   */       }
/* 23:61 */       return null;
/* 24:   */     }
/* 25:   */     catch (Exception e)
/* 26:   */     {
/* 27:63 */       throw new RuntimeException(e.getMessage() + " " + e.getClass().getName());
/* 28:   */     }
/* 29:   */   }
/* 30:   */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions-jta\3.7.0\transactions-jta-3.7.0.jar
 * Qualified Name:     com.atomikos.icatch.jta.ConfigurationEntry
 * JD-Core Version:    0.7.0.1
 */